﻿using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Caching.Memory;
using Microsoft.Extensions.DependencyInjection;
using Snowflake.Core;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Lg.Core.RidAuthor
{
    public class RiderBuilder(IMemoryCache cache, HttpContext context, IdWorker idWorker)
    {
        public IMemoryCache Cache = cache;
        public HttpContext HttpContext = context;
        public IdWorker IdWorker = idWorker;
    }
    public static class RiderBuiderExtensions
    {
        public static IServiceCollection AddRiderBuilder(this IServiceCollection services)
        {
            return services.AddScoped<RiderBuilder>();
        }
    }
}
